package common.util;


import com.alibaba.fastjson.PropertyNamingStrategy;
import com.alibaba.fastjson.serializer.SerializeConfig;

/**
 * global fastjson config
 */
public class GlobalFastJsonConfig {


    private static final SerializeConfig SNAKE_CASE = new SerializeConfig();

    static {
        SNAKE_CASE.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
    }


    public static SerializeConfig getSnakeCase() {
        return SNAKE_CASE;
    }


}
